﻿using System.Windows.Controls;
using System.Windows.Input;
using VupSlashLauncher.Common;

namespace VupSlashLauncher.View
{
    /// <summary>
    /// SettingViewAboutView.xaml 的交互逻辑
    /// </summary>
    public partial class SettingViewAboutView : UserControl
    {
        public SettingViewAboutView()
        {
            InitializeComponent();
        }

        private void Hyperlink(object sender, MouseButtonEventArgs e)
        {
            System.Diagnostics.Process.Start("https://" + GlobalValues.OfficialUrl.Replace("http://", string.Empty).Replace("https://", string.Empty));
        }

        private void LauncherSourceLink_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            System.Diagnostics.Process.Start(GlobalValues.SourceUrl);
        }
    }
}
